package com.zyiot.lbs;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.Button;

import com.umeng.analytics.MobclickAgent;

public class TabBusinessActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_business);
		WebView webview = (WebView) findViewById(R.id.wvBusiness);
		webview.getSettings().setJavaScriptEnabled(true);
		webview.setBackgroundColor(0);
		String URL = "file:///android_asset/business.html";
		// 加载搜索结果
		webview.loadUrl(URL);
		Button btnPhone1 = (Button) findViewById(R.id.phone1);
		btnPhone1.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:4008866805"));
				startActivity(intent);
			}
		});
		Button btnPhone2 = (Button) findViewById(R.id.phone2);
		btnPhone2.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:18861629625"));
				startActivity(intent);
			}
		});

	}
	@Override
	public void onResume() {
	    super.onResume();
	    MobclickAgent.onResume(this);
	}
	@Override
	public void onPause() {
	    super.onPause();
	    MobclickAgent.onPause(this);
	}

}
